Ext.define("ZYY.view.viewport.header", {
	extend : "Ext.panel.Panel",
	alias : 'widget.navhead',
	height:50,
	border:false,
	layout: {
         type: 'hbox'
     },
     items:[
            {
            	xtype:'panel',
            	border:false,
            	width:200,
            	html:"<a class='logo'>logo</a>"
            },
            {
            	xtype:"panel",
            	width:Ext.getBody().getWidth()-200,
            	title:"xx管理系统" ,
            	border:false,
        		tbar:Ext.create('Ext.toolbar.Toolbar', {
        			border:false,
        			items:[
        			       { xtype: 'button', text:"欢迎您："+emp.empname },
        			       '->',
        			       { xtype: 'tbspacer', width: 50 },
        			       { xtype: 'button', id:'closeAll', iconCls:'close', text : '全部关闭'},'-',
        			       { xtype: 'button', iconCls:'keyedit', text : '修改密码'},'-',
        			       { xtype: 'button', id:"logout", iconCls:'logout', text : '注销'},
        			       { xtype: 'tbspacer', width: 20 }
        			       ]
        		})
            }
            ],
	initComponent:function(){
		console.log('布局'+this.$className+'初始化');
		this.callParent(arguments);
	}
	
});

